
import { axiosGet, axiosPost, axiosPut, axiosDelete } from '/@/api/RequestBase';
import { SqlSugarPagedList, BaseKeywordPageInput } from '/@/api/BaseDto';

import { TraKuaiSuFaXueMingXiInput } from './dto/TraKuaiSuFaXueMingXiInput';
import { traKuaiSuFaXueAddInput } from './dto/TraKuaiSuFaXueAddInput';
import { TraShenQingOutput } from '../TraShenQing';
import { traKuaiSuShenQingOutput } from './dto/TraKuaiSuFaXueOutput';
import { TraKuaiSuFaXueAuditInput } from './dto/TraKuaiSuFaXueAuditInput';
import { TraKuaiSuFaXueMingXiUpdateInput } from './dto/TraKuaiSuFaXueMingXiUpdateInput';

export type { TraKuaiSuFaXueMingXiInput, traKuaiSuFaXueAddInput, TraKuaiSuFaXueAuditInput, TraKuaiSuFaXueMingXiUpdateInput };

const service = 'traKuaiSuFaXue/'; // 要写后面的斜杠, 不要写前面的斜杠

export const TraKuaiSuFaXueApi = {
	kuaiSuFaXue: (data: traKuaiSuFaXueAddInput) => {
		return axiosPost<string>(service + 'kuaiSuFaXue', data);
	},
	kuaiSuFaXueMessage: (data: string) => {
		return axiosGet<traKuaiSuShenQingOutput>(service + `kuaiSuFaXueMessage/${data}`);		
	},
	page: (data: BaseKeywordPageInput) => {
		return axiosPost<SqlSugarPagedList<TraShenQingOutput>>(service + 'page', data);
	},
	audit: (data: TraKuaiSuFaXueAuditInput) => {
		return axiosPost<null>(service + 'audit', data);
	},
	updateFaXueMingXi: (data: TraKuaiSuFaXueMingXiUpdateInput) => {
		return axiosPost<null>(service + 'faXueMingXi', data);
	}
}
